@extends('layout/index')

@section('main')
    <div class="mws-panel grid_8">
        <div class="mws-panel-header">
            <span>编辑评论</span>
        </div>
        <div class="mws-panel-body no-padding">
            <form class="mws-form" action="/Admin/comment/update" method="post">
                <input type="hidden" name="id" value="{{$res->id}}">
                <div class="mws-form-inline">
                    <div class="mws-form-row">
                        <label class="mws-form-label">商品名称</label>
                        <div class="mws-form-item">
                            <input class="small" type="text" name="goodsname" value="{{$row->goodsname}}" readonly>
                        </div>
                    </div>

                    <div class="mws-form-row">
                        <label class="mws-form-label">商品图片</label>
                        <div class="mws-form-item">
                            <img src="{{ $row->goodspic}}" alt="" width="100px" height="100px">
                        </div>
                    </div>

                    <div class="mws-form-row">
                        <label class="mws-form-label">评论内容</label>
                        <div class="mws-form-item">
                              <textarea rows="" cols="" class="large" name="content">{{$res->content}}</textarea>
                        </div>
                    </div>

                </div>
                {{ csrf_field() }}
                <div class="mws-button-row">
                    <input value="修改" class="btn btn-danger" type="submit">
                    <input value="重置" class="btn " type="reset">
                </div>
            </form>
        </div>
    </div>

@stop
